package com.guaoran.interview.spring.autowired.service;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.ManagedBean;
import javax.inject.Named;

/**
 * @author : 孤傲然
 * @description : {@link Named} 或 {@link ManagedBean} 等价于 {@link Component}
 * @date :2020/1/3 16:18
 */
@ManagedBean
//@Named
@Transactional
public class NamedService {
    private InjectService injectService;

    public void setInjectService(InjectService injectService){
        this.injectService = injectService;
    }

}
